package eteam.aps.systeminterface.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import eteam.aps.common.enumeration.IBaseEnum;

/**
 * 性别枚举
 */
public enum SexEnum implements IBaseEnum<Integer> {
    /**
     * 未知
     */
    None(-1, "未知"),
    /**
     * 女
     */
    Female(0, "女"),
    /**
     * 男
     */
    Male(1, "男");

    @EnumValue
    @JsonValue
    private int val = 0;

    private String label = "";

    private SexEnum(int value, String desc) {
        val = value;
        label = desc;
    }

    @Override
    public Integer getValue() {
        return val;
    }

    @Override
    public String getDescription() {
        return label;
    }
}
